package com.hema.auction.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * author by john
 */

public class CommodityDetailItem implements MultiItemEntity {

    public static final int SUN = 1; //晒单
    public static final int DEAL = 2;//往期成交
    public static final int RULE = 3;//竞拍规则

    private int itemType;
    private SunSquareInfo sunSquareInfo;
    private GoodsInfo goodsInfo;

    public CommodityDetailItem(int itemType,SunSquareInfo sunSquareInfo) {
        this.itemType = itemType;
        this.sunSquareInfo = sunSquareInfo;
    }

    public CommodityDetailItem(int itemType,GoodsInfo goodsInfo) {
        this.itemType = itemType;
        this.goodsInfo = goodsInfo;
    }

    public SunSquareInfo getSunSquareInfo() {
        return sunSquareInfo;
    }

    public void setSunSquareInfo(SunSquareInfo sunSquareInfo) {
        this.sunSquareInfo = sunSquareInfo;
    }

    public GoodsInfo getGoodsInfo() {
        return goodsInfo;
    }

    public void setGoodsInfo(GoodsInfo goodsInfo) {
        this.goodsInfo = goodsInfo;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
